package com.clotingshoppos.modules.product.repository;

import com.clotingshoppos.common.base.BaseRepository.BaseRepository;
import com.clotingshoppos.modules.product.entity.ProductDataDictionaryEntity;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Optional;

/**
 * @InterfaceName: ProductDDRepository
 * @Description: 产品数据字典数据库接口
 * @Author: zhandad
 * @Date: 2019-03-14 22:42
 * @Version
 */
@Repository
public interface ProductDDRepository extends BaseRepository<ProductDataDictionaryEntity> {
    ProductDataDictionaryEntity save(ProductDataDictionaryEntity productEntity);
    List<ProductDataDictionaryEntity> findByForm(String form);
    Optional<ProductDataDictionaryEntity> findById(String id);
    Optional<ProductDataDictionaryEntity> findByValue(String value);
}
